check string length is greater than 0 php

60

check string length is greater than 0 php -

if(strlen(trim($string)) > 0){
   // $string has at least one non-space character
}

Comments

Submit
0 Comments